Skip to content

Commit

Permalink
Move C# to its own folder
Browse files Browse the repository at this point in the history
  • Loading branch information
ObserverOfTime committed Aug 15, 2023
1 parent addbe99 commit 369c8bd
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: /var/apt/cache/archives
key: ${{runner.os}}-packages
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ benchmarks = BENCHMARKS.md
commands = $(shell awk -F[:,] '{printf $$2" "}' t/tests.json)

## Compile all languages
all: c cpp crystal cs d dart delphi go java kotlin nim pascal rust scala vala
all: c cpp crystal cs d dart go java kotlin nim pascal rust scala vala

c: C/C.c; $(CC) $(CFLAGS) -o $(<:.c=.out) $<

cpp: C/C++.cpp; $(CPP) $(CPPFLAGS) -o $(<:.cpp=.out) $<

crystal: Crystal/Crystal.cr; $(CRYSTAL) $(CRYSTALFLAGS) -o $(<:.cr=.out) $<

cs: C/C\#.cs; $(CSC) $(CSCFLAGS) -out:$(<:.cs=.out) $<
cs: CSharp/C\#.cs; $(CSC) $(CSCFLAGS) -out:$(<:.cs=.out) $<

d: D/D.d; $(DC) $(DCFLAGS) -of=$(<:.d=.out) $<

Expand Down
2 changes: 1 addition & 1 deletion t/tests.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"Awk": "awk -f Awk/Awk.awk",
"Bash": "bash --noprofile --norc Shell/Bash.sh",
"C#": "mono C/C#.out",
"C#": "mono CSharp/C#.out",
"C++": "C/C++.out",
"CMake": "cmake -P CMake/CMake.cmake 2>&1",
"C": "C/C.out",
Expand Down
3 changes: 1 addition & 2 deletions t/tests.t
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env perl

use experimental 'for_list';
use JSON::Parse 'json_file_to_perl';
use Test::More;

Expand All @@ -13,7 +12,7 @@ EOF

plan tests => @ARGV ? $#ARGV + 1 : scalar keys %$tests;

foreach my($lang, $cmd) (%$tests) {
while (my($lang, $cmd) = each %$tests) {
# If arguments are passed, run only the
# tests for the languages listed in them
@ARGV && next unless grep m/^\Q$lang\E$/i, @ARGV;
Expand Down

0 comments on commit 369c8bd

Please sign in to comment.