Add 'make test' which compiles a borg-16 and a borg-ls firmware
This commit is contained in:
parent
266b599cfd
commit
ba6d744304
15
Makefile
15
Makefile
|
@ -145,6 +145,21 @@ menuconfig:
|
||||||
@echo "Next, you can: "
|
@echo "Next, you can: "
|
||||||
@echo " * 'make' to compile your borgware"
|
@echo " * 'make' to compile your borgware"
|
||||||
|
|
||||||
|
test:
|
||||||
|
@echo $(CONFIG_SHELL)
|
||||||
|
@echo
|
||||||
|
@echo "========== Testing borg-16 ========== "
|
||||||
|
$(MAKE) -C scripts/lxdialog all
|
||||||
|
$(CONFIG_SHELL) scripts/Menuconfig config.in profiles/borg-16
|
||||||
|
$(MAKE)
|
||||||
|
$(MAKE) clean
|
||||||
|
@echo
|
||||||
|
@echo "========== Testing borg-ls ========== "
|
||||||
|
$(MAKE) -C scripts/lxdialog all
|
||||||
|
$(CONFIG_SHELL) scripts/Menuconfig config.in profiles/borg-ls
|
||||||
|
$(MAKE)
|
||||||
|
$(MAKE) clean
|
||||||
|
|
||||||
#%/menuconfig:
|
#%/menuconfig:
|
||||||
# $(SH) "$(@D)/configure"
|
# $(SH) "$(@D)/configure"
|
||||||
# @$(MAKE) what-now-msg
|
# @$(MAKE) what-now-msg
|
||||||
|
|
|
@ -1722,6 +1722,8 @@ echo -n ", parsing"
|
||||||
parse_config_files $CONFIG_IN
|
parse_config_files $CONFIG_IN
|
||||||
|
|
||||||
echo "done."
|
echo "done."
|
||||||
|
|
||||||
|
if [ -z $2 ]; then # Interactive mode
|
||||||
#
|
#
|
||||||
# Start the ball rolling from the top.
|
# Start the ball rolling from the top.
|
||||||
#
|
#
|
||||||
|
@ -1749,6 +1751,11 @@ else
|
||||||
echo Your Borg configuration changes were NOT saved.
|
echo Your Borg configuration changes were NOT saved.
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
else # Second argument give; noninteractive!
|
||||||
|
echo "Loading configuration file $2"
|
||||||
|
load_config_file $2
|
||||||
|
save_configuration
|
||||||
|
fi
|
||||||
|
|
||||||
# Remove log if empty.
|
# Remove log if empty.
|
||||||
if [ ! -s .menuconfig.log ] ; then
|
if [ ! -s .menuconfig.log ] ; then
|
||||||
|
|
Loading…
Reference in New Issue