aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristian Starkjohann <cs+github@obdev.at>2008-05-13 15:15:13 +0000
committerChristian Starkjohann <cs+github@obdev.at>2008-05-13 15:15:13 +0000
commitdfcb2cf64a95e99e5325bf3290697ac7823994bc (patch)
treeefd8ac1bbba5bb0d3c5dbdbe56fb8d8cd652f5cd /tests
parent1cc341a56727a0d1bcc3a2eb3d4f2a312ee740a3 (diff)
downloadv-usb-dfcb2cf64a95e99e5325bf3290697ac7823994bc.tar.gz
v-usb-dfcb2cf64a95e99e5325bf3290697ac7823994bc.tar.bz2
v-usb-dfcb2cf64a95e99e5325bf3290697ac7823994bc.zip
- added (optional) reliability test in custom-class example
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile20
1 files changed, 16 insertions, 4 deletions
diff --git a/tests/Makefile b/tests/Makefile
index f8a7517..6c8a1fc 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -66,13 +66,25 @@ sizes sizes.txt:
test:
for freq in 12000000 15000000 16000000 16500000 20000000; do \
for opt in USB_COUNT_SOF USB_CFG_HAVE_INTRIN_ENDPOINT USB_CFG_HAVE_INTRIN_ENDPOINT3 USB_CFG_HAVE_MEASURE_FRAME_LENGTH USB_CFG_LONG_TRANSFERS; do \
- $(MAKE) clean; $(MAKE) main.elf F_CPU=$$freq "DEFINES=-D$$opt=1"; \
- $(MAKE) clean; $(MAKE) main.elf F_CPU=$$freq "DEFINES=-D$$opt=1 -DDUSB_CFG_IMPLEMENT_FN_WRITEOUT=1"; \
+ $(MAKE) clean; $(MAKE) main.elf F_CPU=$$freq "DEFINES=-D$$opt=1" || exit 1; \
+ $(MAKE) clean; $(MAKE) main.elf F_CPU=$$freq "DEFINES=-D$$opt=1 -DDUSB_CFG_IMPLEMENT_FN_WRITEOUT=1" || exit 1; \
done \
done
-# $(MAKE) clean; $(MAKE) main_i.elf "DEFINES=-DUSBPUBLIC=static -DUSE_INCLUDE=1"
-# avr-size main_i.elf | tail -1 | awk '{print "static", $$1+$$2, $$3}' >>$(SIZES_TMP)
+# The following rule is used to check the compiler
+devices: #exclude devices without RAM for stack and atmega603 for gcc 3
+ excludes="at90s1200 attiny11 attiny12 attiny15 attiny28"; \
+ for gccVersion in 3 4; do \
+ avr-gcc-select $$gccVersion; \
+ for device in `echo | avr-gcc -xc -mmcu=x - 2>&1 | egrep '^ *at[a-zA-Z0-9_-]+$$'`; do \
+ if echo "$$excludes" | grep "$$device" >/dev/null; then continue; fi; \
+ if [ "$$gccVersion" = 3 -a "$$device" = atmega603 ]; then continue; fi; \
+ $(MAKE) clean; $(MAKE) null.elf DEVICE=$$device || exit 1; \
+ done \
+ done
+ $(MAKE) clean
+ avr-gcc-select 3
+ @echo "+++ Device test succeeded!"
# rule for deleting dependent files (those which can be built by Make):
clean: