-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added tag list call to vamos test list and tag test
- Loading branch information
Showing
28 changed files
with
200 additions
and
37 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
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
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
==id $Id: vamostest_lib.sfd,v 1.0 2021/03/17 22:04:32 noname Exp $ | ||
==id $Id: vamostest_lib.sfd,v 1.0 2025/01/15 12:44:51 noname Exp $ | ||
* "vamostest.library" | ||
==base _VamosTestBase | ||
==basetype struct VamosTestBase * | ||
==libname vamostest.library | ||
==bias 30 | ||
==public | ||
==include <exec/types.h> | ||
==include <utility/tagitem.h> | ||
VOID PrintHello() () | ||
VOID PrintString(STRPTR str) (a0) | ||
ULONG Add(ULONG a, ULONG b) (d0,d1) | ||
ULONG Swap(ULONG a, ULONG b) (d0,d1) | ||
ULONG Dummy(ULONG a, ULONG b) (d0,d1) | ||
VOID RaiseError(STRPTR str) (a0) | ||
ULONG ExecutePy(ULONG argc, STRPTR * argv) (d0,a0) | ||
ULONG MyFindTagData(ULONG tagVal, CONST struct TagItem * tagList) (d0,a0) | ||
==varargs | ||
ULONG MyFindTagDataTags(ULONG tagVal, ULONG tagList, ...) (d0,a0) | ||
==end |
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,36 @@ | ||
#include <libraries/vamostest.h> | ||
#include <proto/vamostest.h> | ||
#include <proto/exec.h> | ||
#include <utility/tagitem.h> | ||
|
||
struct VamosTestBase *VamosTestBase; | ||
|
||
int main(int argc, char *argv[]) | ||
{ | ||
if ((VamosTestBase = (struct VamosTestBase *)OpenLibrary("vamostest.library", 23))) | ||
{ | ||
int result = 0; | ||
struct TagItem tag_list[] = { | ||
{ TAG_USER, 21 }, | ||
{ TAG_USER+1, 42 }, | ||
{ TAG_USER+2, (ULONG)"hello world!" }, | ||
{ TAG_DONE } | ||
}; | ||
|
||
ULONG tag_value = MyFindTagData(TAG_USER+1, tag_list); | ||
if(tag_value != 42) { | ||
result = 2; | ||
} | ||
|
||
tag_value = MyFindTagDataTags(TAG_USER+1, TAG_USER, 21, TAG_USER+1, 42, | ||
TAG_USER+2, (ULONG)"hello world!", TAG_DONE); | ||
if(tag_value != 42) { | ||
result = 3; | ||
} | ||
|
||
CloseLibrary((struct Library *)VamosTestBase); | ||
return result; | ||
} else { | ||
return 1; | ||
} | ||
} |
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,5 @@ | ||
def test_tags_test(vamos): | ||
retcode, stdout, stderr = vamos.run_prog("test_tags") | ||
assert retcode == 0 | ||
assert stdout == [] | ||
assert stderr == [] |
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
Oops, something went wrong.