mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-11 05:25:28 +03:00
Moves scripts in scripts folder
This commit is contained in:
parent
41687807fd
commit
4971be73f4
2
.github/workflows/linux.yml
vendored
2
.github/workflows/linux.yml
vendored
@ -29,5 +29,5 @@ jobs:
|
||||
run: stack test
|
||||
|
||||
- name: Run Carp Tests
|
||||
run: ./run_carp_tests.sh --no_sdl
|
||||
run: ./scripts/run_carp_tests.sh --no_sdl
|
||||
|
||||
|
2
.github/workflows/osx.yml
vendored
2
.github/workflows/osx.yml
vendored
@ -36,5 +36,5 @@ jobs:
|
||||
run: stack test
|
||||
|
||||
- name: Run Carp Tests
|
||||
run: ./run_carp_tests.sh --no_sdl
|
||||
run: ./scripts/run_carp_tests.sh --no_sdl
|
||||
|
||||
|
2
.github/workflows/release_linux.yml
vendored
2
.github/workflows/release_linux.yml
vendored
@ -18,7 +18,7 @@ jobs:
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Build and zip
|
||||
run: ./release.sh ${{ steps.get_tag_name.outputs.VERSION }} --noprompt
|
||||
run: ./scripts/release.sh ${{ steps.get_tag_name.outputs.VERSION }} --noprompt
|
||||
|
||||
- name: Create Github Release
|
||||
id: create_release
|
||||
|
2
.github/workflows/release_macos.yml
vendored
2
.github/workflows/release_macos.yml
vendored
@ -14,7 +14,7 @@ name: Create Release (macOS)
|
||||
# uses: actions/checkout@v2
|
||||
|
||||
# - name: Build and zip
|
||||
# run: ./release.sh ${{ github.ref }} --noprompt
|
||||
# run: ./scripts/release.sh ${{ github.ref }} --noprompt
|
||||
|
||||
# - name: Create Github Release
|
||||
# id: create_release
|
||||
|
2
.github/workflows/windows.yml
vendored
2
.github/workflows/windows.yml
vendored
@ -48,4 +48,4 @@ jobs:
|
||||
|
||||
- name: Run Carp Tests
|
||||
shell: bash
|
||||
run: ./run_carp_tests.sh --no_sdl
|
||||
run: ./scripts/run_carp_tests.sh --no_sdl
|
||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -2,6 +2,7 @@
|
||||
*~
|
||||
*#
|
||||
*/.DS_Store
|
||||
*.output.actual
|
||||
|
||||
.stack-work/
|
||||
|
||||
@ -16,3 +17,5 @@ main.obj
|
||||
examples/out
|
||||
/stack.yaml.lock
|
||||
tags
|
||||
flamegraph.svg
|
||||
|
||||
|
@ -10,9 +10,9 @@
|
||||
|
||||
(defn some-updating []
|
||||
(let-do [a (replicate n &12345)
|
||||
b (aupdate a 0 &inc-ref)]
|
||||
(assert (= (nth &b 0) &12346))
|
||||
(assert (= (nth &b 1) &12345))))
|
||||
b (aupdate a 0 &inc-ref)]
|
||||
(assert (= (unsafe-nth &b 0) &12346))
|
||||
(assert (= (unsafe-nth &b 1) &12345))))
|
||||
|
||||
(defn perform-bench [new-n]
|
||||
(do
|
||||
|
@ -355,7 +355,7 @@ int String_index_MINUS_of(const String *s, char c) {
|
||||
return String_index_MINUS_of_MINUS_from(s, c, -1);
|
||||
}
|
||||
|
||||
String Pointer_str(void* in) {
|
||||
String Pointer_str(void *in) {
|
||||
int size = snprintf(NULL, 0, "%p", in) + 1;
|
||||
String buffer = CARP_MALLOC(size);
|
||||
sprintf(buffer, "%p", in);
|
||||
|
@ -5,6 +5,6 @@ set -e; # will make the script stop if there are any errors
|
||||
# Actual tests (using the test suite)
|
||||
for f in ./bench/*.carp; do
|
||||
echo $f
|
||||
./carp.sh -x --optimize $f
|
||||
./scripts/carp.sh -x --optimize $f
|
||||
echo
|
||||
done
|
@ -2,6 +2,6 @@
|
||||
# Usage:
|
||||
#
|
||||
# ./haskell-flamegraph <carp options>
|
||||
BUILD_OPTS="--enable-profiling --enable-library-profiling" ./carp.sh $* +RTS -p -hc
|
||||
BUILD_OPTS="--enable-profiling --enable-library-profiling" ./scripts/carp.sh $* +RTS -p -hc
|
||||
ghc-prof-flamegraph carp.prof
|
||||
xdg-open carp.svg
|
@ -8,7 +8,7 @@ if [[ $# -gt 0 ]] && [[ "$1" == "--no_sdl" ]]; then
|
||||
NO_SDL=1
|
||||
fi
|
||||
|
||||
./build.sh
|
||||
./scripts/build.sh
|
||||
|
||||
# Build and run some examples
|
||||
./test/execute.sh ./examples/basics.carp
|
||||
@ -27,7 +27,7 @@ fi
|
||||
# Actual tests (using the test suite)
|
||||
for f in ./test/*.carp; do
|
||||
echo $f
|
||||
./carp.sh -x --log-memory $f
|
||||
./scripts/carp.sh -x --log-memory $f
|
||||
echo
|
||||
done
|
||||
|
||||
@ -39,28 +39,28 @@ for f in ./test-for-errors/*.carp; do
|
||||
done
|
||||
|
||||
# Just make sure these compile
|
||||
./carp.sh ./examples/mutual_recursion.carp -b
|
||||
./carp.sh ./examples/guessing.carp -b
|
||||
./carp.sh ./examples/no_core.carp --no-core --no-profile -b
|
||||
./carp.sh ./examples/check_malloc.carp -b
|
||||
./carp.sh ./examples/nested_lambdas.carp -b
|
||||
./scripts/carp.sh ./examples/mutual_recursion.carp -b
|
||||
./scripts/carp.sh ./examples/guessing.carp -b
|
||||
./scripts/carp.sh ./examples/no_core.carp --no-core --no-profile -b
|
||||
./scripts/carp.sh ./examples/check_malloc.carp -b
|
||||
./scripts/carp.sh ./examples/nested_lambdas.carp -b
|
||||
|
||||
# Run tests which rely on SDL unless the `--no_sdl` argument was passed in
|
||||
if [[ ${NO_SDL} -eq 0 ]]; then
|
||||
./carp.sh ./examples/ant.carp -b
|
||||
./carp.sh ./examples/reptile.carp -b
|
||||
./carp.sh ./examples/game.carp -b
|
||||
./carp.sh ./examples/minimal_sdl.carp -b
|
||||
./carp.sh examples/sounds.carp -b
|
||||
./carp.sh examples/fonts.carp -b
|
||||
./scripts/carp.sh ./examples/ant.carp -b
|
||||
./scripts/carp.sh ./examples/reptile.carp -b
|
||||
./scripts/carp.sh ./examples/game.carp -b
|
||||
./scripts/carp.sh ./examples/minimal_sdl.carp -b
|
||||
./scripts/carp.sh ./examples/sounds.carp -b
|
||||
./scripts/carp.sh ./examples/fonts.carp -b
|
||||
fi
|
||||
|
||||
# Generate docs
|
||||
./carp.sh ./docs/core/generate_core_docs.carp
|
||||
./scripts/carp.sh ./docs/core/generate_core_docs.carp
|
||||
|
||||
# Generate SDL docs unless the `--no_sdl` argument was passed in
|
||||
if [[ ${NO_SDL} -eq 0 ]]; then
|
||||
./carp.sh ./docs/sdl/generate_sdl_docs.carp
|
||||
./scripts/carp.sh ./docs/sdl/generate_sdl_docs.carp
|
||||
fi
|
||||
|
||||
echo "ALL TESTS DONE."
|
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Checks the code (using --check) and compares the output to the .expected file
|
||||
./carp.sh $1 --log-memory --check > test/output/$1.output.actual 2>&1
|
||||
./scripts/carp.sh $1 --log-memory --check > test/output/$1.output.actual 2>&1
|
||||
|
||||
if ! diff --strip-trailing-cr test/output/$1.output.actual test/output/$1.output.expected; then
|
||||
echo "$1 failed."
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Runs the executable and compares its output to the .expected file
|
||||
./carp.sh $1 --log-memory -b && \
|
||||
./scripts/carp.sh $1 --log-memory -b && \
|
||||
./out/Untitled > test/output/$1.output.actual 2>&1
|
||||
echo $1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user