Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test program only requires Cabal >= 1.6 now
- Loading branch information
1 parent
13a25bc
commit c0e199f
Showing
9 changed files
with
54 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
*.swp | ||
/cbits/*.exe | ||
/dist/ | ||
/test/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: network-info-test | ||
version: 0.1 | ||
build-type: Simple | ||
cabal-version: >= 1.6 | ||
|
||
Executable network-info-test | ||
hs-source-dirs: ../src src | ||
include-dirs: ../cbits | ||
cc-options: -Wall -Werror | ||
|
||
main-is: Main.hs | ||
other-modules: Network.Info | ||
|
||
build-depends: | ||
base == 4.* | ||
|
||
if os(linux) || os(darwin) | ||
c-sources: ../cbits/network-unix.c | ||
else | ||
if os(windows) | ||
c-sources: ../cbits/network-windows.c | ||
extra-libraries: iphlpapi | ||
else | ||
buildable: False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@echo off | ||
cabal configure && cabal build && .\dist\build\test-network-info\test-network-info.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
TESTDIR="$(dirname -- "${0}")" | ||
cd $TESTDIR | ||
|
||
cabal configure && cabal build && ./dist/build/network-info-test/network-info-test |
File renamed without changes.