Make SKIP environment variable declare SKIP symbol

This commit is contained in:
Zellyn Hunter 2017-04-02 21:51:20 -04:00
parent 548ff35b9e
commit 55b5e48625
3 changed files with 10 additions and 3 deletions

View File

@ -158,7 +158,6 @@ main:
;; Detection and reporting of model and memory.
!src "detect.asm"
; SKIP = 1
!ifndef SKIP {
;; Language card tests.
jsr LANGCARDTESTS
@ -175,7 +174,7 @@ main:
;; Keyboard tests: for now, just check we can press 'Y', 'N', SPACE, or ESC
jsr KEYBOARDTESTS
} ; if SKIP
} ; ifndef SKIP
;; Video tests.
jsr VIDEOTESTS

View File

@ -2,7 +2,12 @@
set -euo pipefail
export ACME="$HOME/gh/acme/ACME_Lib"
acme audit.asm
if [[ "${SKIP-}" == "" ]]
then
acme audit.asm
else
acme -DSKIP=1 audit.asm
fi
# Build audit.dsk with diskii (bit.ly/a2diskii), on a "Standard Delivery" disk
# ============================================================================

View File

@ -268,6 +268,7 @@ foo !text "FOOBAR",$8D,$0
.testdata
;; Aux lores even/odd, lores even/odd, aux hires even/odd, hires even/odd, mode 1, mode 2
!ifndef SKIP {
;; 40COL and 80COL Text, inverse space.
+string
!text "40-COL AND 80-COL TEXT INVERSE SPACES:",$8D
@ -426,6 +427,8 @@ foo !text "FOOBAR",$8D,$0
+stringed
!byte $77, $77, $ee, $ee, $77, $dd, $ee, $bb, .md_80col | .md_an3off, .md_hires | .md_80col | .md_an3off
} ; ifndef SKIP
;; Tests that LORES stays the same in 80COL mode if AN3 is on.
;; OpenEmulator bug: https://github.com/OpenEmulatorProject/libemulation/issues/24