-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added: CLI option parsing, test, docs
- Loading branch information
Showing
5 changed files
with
35 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
tests/test build script and options/nonCodeOptions/optionFullpath.asm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
; test --fullpath results in listing file | ||
INCLUDE "optionFullpath/optionFullpath.i.asm" | ||
ASSERT 0 ; for error reporting file pos |
17 changes: 17 additions & 0 deletions
17
tests/test build script and options/nonCodeOptions/optionFullpath.cli
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
## run sjasmplus with all --fulpath posssible options "--fullpath=off|rel|on" and uknown value | ||
LANG=C $MEMCHECK "$EXE" --nologo --msg=lstlab "${options[@]}" 2> "${dst_base}.1a.lst" "$file_asm" | ||
LANG=C $MEMCHECK "$EXE" --nologo --msg=lstlab --fullpath=off "${options[@]}" 2> "${dst_base}.1b.lst" "$file_asm" | ||
LANG=C $MEMCHECK "$EXE" --nologo --msg=lstlab --fullpath=rel "${options[@]}" 2> "${dst_base}.2a.lst" "$file_asm" | ||
LANG=C $MEMCHECK "$EXE" --nologo --msg=lstlab --fullpath "${options[@]}" 2> "${dst_base}.2b.lst" "$file_asm" | ||
LANG=C $MEMCHECK "$EXE" --nologo --msg=lstlab --fullpath=on "${options[@]}" 2> "${dst_base}.3.lst" "$file_asm" | ||
LANG=C $MEMCHECK "$EXE" --nologo --msg=lstlab --fullpath=xxx "${options[@]}" 2> "${dst_base}.4.lst" "$file_asm" | ||
# check that 1a == 1b, 2a == 2b, and 1 != 2 != 3 != 4 (not checking lst content, differences are enough to pass) | ||
diff "${dst_base}.1a.lst" "${dst_base}.1b.lst" && \ | ||
diff "${dst_base}.2a.lst" "${dst_base}.2b.lst" && \ | ||
! diff -q "${dst_base}.1a.lst" "${dst_base}.2a.lst" > /dev/null && \ | ||
! diff -q "${dst_base}.1a.lst" "${dst_base}.3.lst" > /dev/null && \ | ||
! diff -q "${dst_base}.1a.lst" "${dst_base}.4.lst" > /dev/null && \ | ||
! diff -q "${dst_base}.2a.lst" "${dst_base}.3.lst" > /dev/null && \ | ||
! diff -q "${dst_base}.2a.lst" "${dst_base}.4.lst" > /dev/null && \ | ||
! diff -q "${dst_base}.3.lst" "${dst_base}.4.lst" > /dev/null | ||
last_result=$? |
2 changes: 2 additions & 0 deletions
2
tests/test build script and options/nonCodeOptions/optionFullpath/optionFullpath.i.asm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ret | ||
ASSERT 0 ; for error reporting file pos |