Compile Unittest Files

11 views
Skip to first unread message

Matthew Schinkel

unread,
Dec 15, 2021, 9:44:01 PM12/15/21
to jallib
Hi everyone,

How do I compile \test\peripheral\usb\test_usb_hid_mouse.jal?

I tried with jallib.bat/jallib.py unittest with this command:

jallib.bat unittest d:\dev\jallib-github-svn-copy\test\peripheral\usb\test_usb_hid_mouse.jal

and get the following result:
['D:\\dev\\Jallib-github-svn-Copy\\compiler\\jalv2_64.exe', '-s', 'D:\\dev\\Jallib-github-svn-Copy\\include;.......... {more includes here}
['d:\\dev\\jallib-github-svn-copy\\test\\peripheral\\usb\\test_usb_hid_mouse.jal']
Error while compiling file (status=1).
See previous message.
Test results: {'failure': 1, 'notrun': None, 'success': None}

It says error compiling file but does not tell me what the error is.

Of course a regular compile of the file gives many errors because there is no chip defined. There are lines like this that are likely supposed to be replaced by the generator
;@jallib section board_description
;@jallib use chipdef

Do we still use this sample generator?

Thanks,
Matt.

Matthew Schinkel

unread,
Dec 21, 2021, 5:00:07 PM12/21/21
to jallib
Since there has been no response, I assume nobody knows how to compile samples made with the unittest generator.

I think I'll have to replace all of the existing samples with samples that are not generated.

Matt.

Rob CJ

unread,
Dec 22, 2021, 1:06:20 PM12/22/21
to jal...@googlegroups.com
Hi Matt,

To speak for myself, I am indeed not familiar with the unittest generator.

I also wonder if we need so many samples for one and the same library. Normally one sample file for a library would be the minimum (and often suffcicient) and for other PIC types you just look at the relevant blink sample since blink samples are made for all released PICs.

It would reduce the number of sample files in the sample directory.

Kind regards,

Rob


Van: jal...@googlegroups.com <jal...@googlegroups.com> namens Matthew Schinkel <mattsc...@hotmail.com>
Verzonden: dinsdag 21 december 2021 23:00
Aan: jallib <jal...@googlegroups.com>
Onderwerp: [jallib] Re: Compile Unittest Files
 
--
You received this message because you are subscribed to the Google Groups "jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jallib+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/fe84737c-ad6c-45a1-907b-51f9b7c8fb98n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages