text
stringlengths 0
834k
|
---|
echo Compile CCX using cmake
|
call :postStatus ""building"" ""Compiling CCExtractor using cmake""
|
rem making a build folder
|
mkdir build
|
cd build
|
rem Compiling using cmake from src source to build repo
|
cmake ../src
|
rem Building CCExtractor
|
cmake --build . --config Debug --target ccextractor
|
if EXIST ""Debug\ccextractor.exe"" (
|
call :postStatus ""building"" ""Successful build using cmake""
|
) else (
|
call :postStatus ""building"" ""Failed to build using cmake""
|
)
|
cd ..
|
rmdir /Q/S build
|
echo Compile CCX
|
call :postStatus ""building"" ""Compiling CCExtractor""
|
rem Go to Windows build folder
|
call :executeCommand cd windows
|
rem Build CCExtractor using the sln script
|
call :executeCommand ""C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild"" ccextractor.sln
|
rem check whether installation successful
|
if EXIST ""Debug\ccextractorwin.exe"" (
|
cd Debug
|
rem Run testsuite
|
echo Run tests
|
call :postStatus ""testing"" ""Running tests""
|
call :executeCommand cd %suiteDstDir%
|
call :executeCommand ""%tester%"" --entries ""%testFile%"" --executable ""%dstDir%\windows\Debug\ccextractorwin.exe"" --tempfolder ""%tempFolder%"" --timeout 3000 --reportfolder ""%reportFolder%"" --resultfolder ""%resultFolder%"" --samplefolder ""%sampleFolder%"" --method Server --url ""%reportURL%""
|
call :postStatus ""completed"" ""Ran all tests""
|
echo Done running tests
|
rem Shut down
|
timeout 5
|
shutdown -s -t 0
|
exit
|
) else (
|
call :haltAndCatchFire ""build""
|
)
|
echo End
|
EXIT %ERRORLEVEL%
|
rem Functions to shorten the script
|
rem Fail when the exit status is not equal to 0
|
:executeCommand
|
echo %* >> ""%logFile%""
|
%* >> ""%logFile%""
|
SET /A status=%ERRORLEVEL%
|
IF %status% NEQ 0 (
|
echo Command exited with %status% >> ""%logFile%""
|
rem No message needed as we post before anyway
|
call :haltAndCatchFire """"
|
)
|
EXIT /B 0
|
rem Post status to the server
|
:postStatus
|
echo ""Posting status %~1 (message: %~2) to the server""
|
curl -s -A ""%userAgent%"" --data ""type=progress&status=%~1&message=%~2"" -w ""\n"" ""%reportURL%"" >> ""%logFile%""
|
EXIT /B 0
|
rem Exit script and post abort status
|
:haltAndCatchFire
|
echo ""Halt and catch fire (reason: %~1)""
|
call :postStatus ""canceled"" ""%~1""
|
timeout 5
|
echo Post log
|
curl -s -A ""%userAgent%"" --form ""type=logupload"" --form ""file=@%logFile%"" -w ""\n"" ""%reportURL%""
|
rem Shut down, but only in 10 seconds, to give the time to finish the post status
|
timeout 10
|
shutdown -s -t 0
|
EXIT 0
|
",31.4727272727,291,0.6964182553
|
2,d00059161202db4aa9845d76722679bcc4d7f90e,447,cmd,Batchfile,Android/NDK/android-ndk-r20b-win/toolchains/llvm/prebuilt/windows-x86_64/bin/armv7a-linux-androideabi17-clang.cmd,X018/CCTOOL,989af4d7edab82bf540400eb72eca4e7447d722c,['MIT'],,,,Android/NDK/android-ndk-r20b-win/toolchains/llvm/prebuilt/windows-x86_64/bin/armv7a-linux-androideabi17-clang.cmd,X018/CCTOOL,989af4d7edab82bf540400eb72eca4e7447d722c,['MIT'],,,,Android/NDK/android-ndk-r20b-win/toolchains/llvm/prebuilt/windows-x86_64/bin/armv7a-linux-androideabi17-clang.cmd,X018/CCTOOL,989af4d7edab82bf540400eb72eca4e7447d722c,['MIT'],,,,"@echo off
|
setlocal
|
call :find_bin
|
if ""%1"" == ""-cc1"" goto :L
|
set ""_BIN_DIR="" && %_BIN_DIR%clang.exe --target=armv7a-linux-androideabi17 -fno-addrsig %*
|
if ERRORLEVEL 1 exit /b 1
|
goto :done
|
:L
|
rem Target is already an argument.
|
set ""_BIN_DIR="" && %_BIN_DIR%clang.exe %*
|
if ERRORLEVEL 1 exit /b 1
|
goto :done
|
:find_bin
|
rem Accommodate a quoted arg0, e.g.: ""clang""
|
rem https://github.com/android-ndk/ndk/issues/616
|
set _BIN_DIR=%~dp0
|
exit /b
|
:done
|
",19.4347826087,90,0.7091722595
|
3,d0005d67613f77349a60f17ef906d508b37ade2a,876,bat,Batchfile,labs/08-traffic_lights/traffic_lights/traffic_lights.sim/sim_1/behav/xsim/simulate.bat,xzdraz12/digital-electronics-1,ff112bc541abf14798e6c65fab6d858204582c00,['MIT'],,,,labs/08-traffic_lights/traffic_lights/traffic_lights.sim/sim_1/behav/xsim/simulate.bat,xzdraz12/digital-electronics-1,ff112bc541abf14798e6c65fab6d858204582c00,['MIT'],,,,labs/08-traffic_lights/traffic_lights/traffic_lights.sim/sim_1/behav/xsim/simulate.bat,xzdraz12/digital-electronics-1,ff112bc541abf14798e6c65fab6d858204582c00,['MIT'],,,,"@echo off
|
REM ****************************************************************************
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.