Skip to content

Commit

Permalink
fix failing tests for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nlsandler committed Mar 26, 2024
1 parent f8f0e3b commit 655c486
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
17 changes: 1 addition & 16 deletions test_framework/test_tests/test_programs.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,6 @@
from .. import basic, regalloc


def lookup_libs(prog: Path) -> List[Path]:
"""Look up extra libraries we need to link against"""
k = basic.get_props_key(prog)
if k in basic.ASSEMBLY_DEPENDENCIES:
platfrm = basic.get_platform()
dep = basic.ASSEMBLY_DEPENDENCIES[k][platfrm]

return [prog.with_name(dep)]
if k in basic.DEPENDENCIES:
dep = basic.DEPENDENCIES[k]
return [basic.TEST_DIR / dep]

return []


def build_compiler_args(source_file: Path) -> List[str]:
"""Given a source file, build the list of files/extra options we need for standalone compilation"""
args = [str(source_file)]
Expand All @@ -45,7 +30,7 @@ def build_compiler_args(source_file: Path) -> List[str]:
args.append(str(regalloc.WRAPPER_SCRIPT))

# some test programs have extra libraries too
args.extend(str(lib) for lib in lookup_libs(source_file))
args.extend(str(lib) for lib in basic.get_libs(source_file))

# add mathlib option if needed
if needs_mathlib:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ int set_globals(int start) {
glob2 = start + 2;
glob3 = start + 3;
glob4 = start + 4;
return 0;
}

int target(void) {
Expand Down

0 comments on commit 655c486

Please sign in to comment.