Commit a816dbb7 authored by Drew's avatar Drew

Testing on OSX (sorta)

We can test with the following monstrosity

~/Code/AnarchyTools/atbuild/.atllbuild/products/atbuild build-tests && cp .atllbuild/products/NaOHTests ManuallyCreated.xctest/Contents/MacOS/NaOHTests && xcrun xctest ManuallyCreated.xctest/
parent 824a8aa6
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>NaOHTests</string>
<key>CFBundleIdentifier</key>
<string>org.swift.package-manager.dep-tests</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>NaOHTests</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
......@@ -12,7 +12,18 @@
:name "NaOH"
:outputType "static-library"
:dependencies ["libsodium"]
:compileOptions ["-I" "libsodium/"]
:compileOptions ["-I" "libsodium/" "-enable-testing"]
}
:build-tests {
:tool "atllbuild"
:source ["NaOHTests/**.swift"]
:name "NaOHTests"
:outputType "executable"
:dependencies ["default"]
:compileOptions ["-F" "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/" "-I" "libsodium/"]
:linkOptions ["-F" "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/" "-L" "libsodium/libsodium/src/libsodium/.libs/" "-lsodium" "-target" "x86_64-apple-macosx10.11" "-Xlinker" "-rpath" "-Xlinker" "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/" "-Xlinker" "-bundle"]
:linkWithProduct ["NaOH.a"]
}
}
)
......@@ -14,4 +14,5 @@ if [ ! -f Makefile ]; then
fi
if [ ! -f src/libsodium/.libs/libsodium.a ]; then
make -j8
rm src/libsodium/.libs/libsodium.dylib
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment