Skip to content

Commit

Permalink
Merge pull request #106 from atb00ker/setup-bug
Browse files Browse the repository at this point in the history
[setup] fixed install & runtests scripts
  • Loading branch information
nemesifier authored Apr 11, 2020
2 parents 9b4dd9b + 677affd commit fc04e62
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions install-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ apt-get install -y cmake git-core
apt-get install -y lua5.1 liblua5.1-0-dev luarocks
# install json-c
apt-get install -y dh-autoreconf
git clone https://github.com/json-c/json-c.git --depth=1 && cd json-c
sh autogen.sh && ./configure && make && make install && cd ..
git clone https://github.com/json-c/json-c.git --depth=1
cd json-c && cmake . && make install && cd .. || { echo 'Installing json-c failed!' ; exit 1; }
# install openwrt libubox and uci
git clone https://git.openwrt.org/project/libubox.git --depth=1 && cd libubox
cmake . && make install && cd ..
git clone https://git.openwrt.org/project/uci.git --depth=1 && cd uci
cmake . && make install && cd ..
git clone https://git.openwrt.org/project/libubox.git --depth=1
cd libubox && cmake . && make install && cd .. || { echo 'Installing libubox failed!' ; exit 1; }
git clone https://git.openwrt.org/project/uci.git --depth=1
cd uci && cmake . && make install && cd .. || { echo 'Installing uci failed!' ; exit 1; }
# update links to shared libraries
ldconfig -v
# install luafilesystem
Expand Down
2 changes: 1 addition & 1 deletion runtests
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
set -e
luacheck . -a
luacheck ./openwisp-config/ -a
cd openwisp-config/tests/
lua test_store_unmanaged.lua -v
lua test_restore_unmanaged.lua -v
Expand Down

0 comments on commit fc04e62

Please sign in to comment.