-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.bat
More file actions
53 lines (44 loc) · 1.69 KB
/
test.bat
File metadata and controls
53 lines (44 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
@echo off
echo build hash_api
nasm -f bin -O3 src/x64/find_api.asm -o bin/x64/find_api.bin
nasm -f bin -O3 src/x64/api_call.asm -o bin/x64/api_call.bin
nasm -f bin -O3 src/x86/find_api.asm -o bin/x86/find_api.bin
nasm -f bin -O3 src/x86/api_call.asm -o bin/x86/api_call.bin
echo build not_found
nasm -f bin -O3 test/not_found_x64.asm -o test/not_found_x64.bin
nasm -f bin -O3 test/not_found_x86.asm -o test/not_found_x86.bin
echo build assembly example
nasm -f bin -O3 example/asm/x64/find_api.asm -o example/asm/x64/find_api.bin
nasm -f bin -O3 example/asm/x64/api_call.asm -o example/asm/x64/api_call.bin
nasm -f bin -O3 example/asm/x64/win_exec.asm -o example/asm/x64/win_exec.bin
nasm -f bin -O3 example/asm/x86/find_api.asm -o example/asm/x86/find_api.bin
nasm -f bin -O3 example/asm/x86/api_call.asm -o example/asm/x86/api_call.bin
nasm -f bin -O3 example/asm/x86/win_exec.asm -o example/asm/x86/win_exec.bin
echo.
echo test not_found
"bin/x64/scloader.exe" "test/not_found_x64.bin"
"bin/x86/scloader.exe" "test/not_found_x86.bin"
echo.
echo test assembly example
"bin/x64/scloader.exe" "example/asm/x64/find_api.bin"
"bin/x64/scloader.exe" "example/asm/x64/api_call.bin"
"bin/x64/scloader.exe" "example/asm/x64/win_exec.bin"
"bin/x86/scloader.exe" "example/asm/x86/find_api.bin"
"bin/x86/scloader.exe" "example/asm/x86/api_call.bin"
"bin/x86/scloader.exe" "example/asm/x86/win_exec.bin"
echo.
echo test Golang example on x64
set GOOS=windows
set GOARCH=amd64
go run test/test.go
go run example/go/main.go
echo.
echo test Golang example on x86
set GOARCH=386
go run test/test.go
go run example/go/main.go
echo.
echo clean processes
taskkill /IM "win32calc.exe" /f
echo clean test binary output files
del test\*.bin