mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-29 05:21:37 +03:00
adaptations for lwIP-v1.4 (#5682)
* adaptations for lwIP-v1.4 * add lwIP-v1.4 in CI
This commit is contained in:
22
tests/build1.sh
Executable file
22
tests/build1.sh
Executable file
@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cache_dir=$(mktemp -d)
|
||||
|
||||
source "$TRAVIS_BUILD_DIR"/tests/common.sh
|
||||
|
||||
if [ -z "$BUILD_PARITY" ]; then
|
||||
mod=1
|
||||
rem=0
|
||||
elif [ "$BUILD_PARITY" = "even" ]; then
|
||||
mod=2
|
||||
rem=0
|
||||
elif [ "$BUILD_PARITY" = "odd" ]; then
|
||||
mod=2
|
||||
rem=1
|
||||
fi
|
||||
|
||||
install_arduino nodebug
|
||||
build_sketches_with_arduino "$mod" "$rem" hb1
|
||||
|
||||
rm -rf "$cache_dir"
|
||||
|
@ -280,7 +280,7 @@ bool wifi_station_get_config_default (struct station_config *config)
|
||||
}
|
||||
|
||||
char wifi_station_get_hostname_str [128];
|
||||
char* wifi_station_get_hostname (void)
|
||||
const char* wifi_station_get_hostname (void)
|
||||
{
|
||||
return strcpy(wifi_station_get_hostname_str, "esposix");
|
||||
}
|
||||
@ -312,7 +312,7 @@ bool wifi_station_set_config_current (struct station_config *config)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wifi_station_set_hostname (char *name)
|
||||
bool wifi_station_set_hostname (const char *name)
|
||||
{
|
||||
(void)name;
|
||||
return true;
|
||||
|
@ -54,12 +54,13 @@ while true; do
|
||||
Which build?
|
||||
1. main
|
||||
2. main + IPv6
|
||||
3. debug even
|
||||
4. debug odd
|
||||
5. platformio
|
||||
6. package
|
||||
7. host
|
||||
8. style
|
||||
3. main with lwIP-v1.4
|
||||
4. debug even
|
||||
5. debug odd
|
||||
6. platformio
|
||||
7. package
|
||||
8. host
|
||||
9. style
|
||||
EOF
|
||||
|
||||
read ans
|
||||
@ -68,12 +69,13 @@ EOF
|
||||
case "$ans" in
|
||||
1) BUILD_TYPE=build;;
|
||||
2) BUILD_TYPE=build6;;
|
||||
3) BUILD_TYPE=debug_even;;
|
||||
4) BUILD_TYPE=debug_odd;;
|
||||
5) BUILD_TYPE=platformio;;
|
||||
6) BUILD_TYPE=package;;
|
||||
7) BUILD_TYPE=host;;
|
||||
8) BUILD_TYPE=style;;
|
||||
3) BUILD_TYPE=build1;;
|
||||
4) BUILD_TYPE=debug_even;;
|
||||
5) BUILD_TYPE=debug_odd;;
|
||||
6) BUILD_TYPE=platformio;;
|
||||
7) BUILD_TYPE=package;;
|
||||
8) BUILD_TYPE=host;;
|
||||
9) BUILD_TYPE=style;;
|
||||
esac
|
||||
test -z "$BUILD_TYPE" || break
|
||||
done
|
||||
@ -105,6 +107,13 @@ elif [ "$BUILD_TYPE" = "build6_even" ]; then
|
||||
elif [ "$BUILD_TYPE" = "build6_odd" ]; then
|
||||
BUILD_PARITY=odd tests/build6.sh
|
||||
|
||||
elif [ "$BUILD_TYPE" = "build1" ]; then
|
||||
tests/build1.sh
|
||||
elif [ "$BUILD_TYPE" = "build1_even" ]; then
|
||||
BUILD_PARITY=even tests/build1.sh
|
||||
elif [ "$BUILD_TYPE" = "build1_odd" ]; then
|
||||
BUILD_PARITY=odd tests/build1.sh
|
||||
|
||||
elif [ "$BUILD_TYPE" = "platformio" ]; then
|
||||
tests/platformio-custom.sh
|
||||
elif [ "$BUILD_TYPE" = "platformio_even" ]; then
|
||||
|
Reference in New Issue
Block a user